cmake_minimum_required(VERSION 3.12)
project(FFmpegLogTest C)

include_directories(/usr/local/ffmpeg/include/)
link_directories(/usr/local/ffmpeg/lib/)

set(CMAKE_C_STANDARD 99)

add_executable(FFmpegLogTest log/log.h log/log.c extra_audio.c extra_audio.h util/util.h util/util.c
        extra_video.h extra_video.c extra_video_2.h extra_video_2.c main.c convertMp4ToFlv.h convertMp4ToFlv.c
        cutvideo.h cutvideo.c encodevideo.h encodevideo.c audiovideomuxer.h audiovideomuxer.c extra_audio_ffmpegapi.c
        convertVideoToBmp.h convertVideoToBmp.c main.c convertVideoToJpg.h convertVideoToJpg.c
        )

target_link_libraries(
        FFmpegLogTest
        avcodec
        avdevice
        avfilter
        avformat
        avutil
        postproc
        swresample
        swscale
)

